<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
       b页面
    <script>
        // 需要歌手的id
        // 1.第一种
        // console.log(location.href.split("=")[1]);
        // 2.第二种
        console.log(localStorage.getItem("id"));
        // 3.第三种
        console.log(sessionStorage.getItem("id2"));
      
        
        fetch("https://autumnfish.cn/artist/detail?id=歌手id(上一页)").then(r => r.json()).then(r => {
            console.log(r);
        })


        
    </script>
</body>
</html>